Class symantec.itools.awt.InvisibleHTMLLink
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.awt.InvisibleHTMLLink
Object
|
+----Component
|
+----InvisibleButton
|
+----symantec.itools.awt.InvisibleHTMLLink
- public class InvisibleHTMLLink
- extends InvisibleButton
Use this component to create an invisible rectangular button, usually within
an image, that displays the document at a given URL when clicked.
- Version:
- 1.1, June 11, 1997
- Author:
- Symantec
-
context
- Applet context that shows the document.
-
frame
- Frame specifier for showing a URL document in a browser or applet
viewer.
-
url
- The URL of the document to show when the button is clicked.
-
symantec.itools.awt.InvisibleHTMLLink()
- Constructs a default InvisibleHTMLLink.
-
addNotify()
- Tells this component that it has been added to a container.
-
addPropertyChangeListener(PropertyChangeListener)
- Adds a listener for all event changes.
-
addVetoableChangeListener(VetoableChangeListener)
- Adds a vetoable listener for all event changes.
-
getFrame()
- Gets the frame specifier for showing a URL document in a browser or applet
viewer.
-
getURL()
- Returns the URL of the document to show when the button is clicked.
-
removeNotify()
- Tells this component that it is being removed from a container.
-
removePropertyChangeListener(PropertyChangeListener)
- Removes a listener for all event changes.
-
removeVetoableChangeListener(VetoableChangeListener)
- Removes a vetoable listener for all event changes.
-
setAppletContext(AppletContext)
- Sets the applet context used to view documents.
-
setFrame(String)
- Sets the frame specifier for showing a URL document in a browser or applet
viewer.
-
setURL(URL)
- Sets the URL of the document to show when the button is clicked.
context
protected transient java.applet.AppletContext context
- Applet context that shows the document.
frame
protected java.lang.String frame
- Frame specifier for showing a URL document in a browser or applet
viewer. It is interpreted as follows:
- "_self" show document in the current frame
- "_parent" show document in the parent frame
- "_top" show document in the topmost frame
- "_blank" show document in a new unnamed toplevel window
- all others show document in a new toplevel window with the given name
url
protected java.net.URL url
- The URL of the document to show when the button is clicked.
InvisibleHTMLLink
public InvisibleHTMLLink()
- Constructs a default InvisibleHTMLLink.
addNotify
public synchronized void addNotify()
- Tells this component that it has been added to a container.
This is a standard Java AWT method which gets called by the AWT when
this component is added to a container. Typically, it is used to
create this component's peer.
It has been overridden here to hook-up event listeners.
- Overrides:
- addNotify in class InvisibleButton
- See Also:
- removeNotify
addPropertyChangeListener
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)
- Adds a listener for all event changes.
- Parameters:
- PropertyChangeListener - listener the listener to add.
- Overrides:
- addPropertyChangeListener in class InvisibleButton
- See Also:
- removePropertyChangeListener
addVetoableChangeListener
public synchronized void addVetoableChangeListener(VetoableChangeListener listener)
- Adds a vetoable listener for all event changes.
- Parameters:
- VetoableChangeListener - listener the listener to add.
- Overrides:
- addVetoableChangeListener in class InvisibleButton
- See Also:
- removeVetoableChangeListener
getFrame
public java.lang.String getFrame()
- Gets the frame specifier for showing a URL document in a browser or applet
viewer. It is interpreted as follows:
- "_self" show document in the current frame
- "_parent" show document in the parent frame
- "_top" show document in the topmost frame
- "_blank" show document in a new unnamed toplevel window
- all others show document in a new toplevel window with the given name
- Returns:
- the frame specifier
- See Also:
- setFrame
getURL
public java.net.URL getURL()
- Returns the URL of the document to show when the button is clicked.
- See Also:
- setURL
removeNotify
public synchronized void removeNotify()
- Tells this component that it is being removed from a container.
This is a standard Java AWT method which gets called by the AWT when
this component is removed from a container. Typically, it is used to
destroy the peers of this component and all its subcomponents.
It has been overridden here to unhook event listeners.
- Overrides:
- removeNotify in class InvisibleButton
- See Also:
- addNotify
removePropertyChangeListener
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)
- Removes a listener for all event changes.
- Parameters:
- PropertyChangeListener - listener the listener to remove.
- Overrides:
- removePropertyChangeListener in class InvisibleButton
- See Also:
- addPropertyChangeListener
removeVetoableChangeListener
public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)
- Removes a vetoable listener for all event changes.
- Parameters:
- VetoableChangeListener - listener the listener to remove.
- Overrides:
- removeVetoableChangeListener in class InvisibleButton
- See Also:
- addVetoableChangeListener
setAppletContext
protected void setAppletContext(AppletContext c)
- Sets the applet context used to view documents.
- Parameters:
- c - the new applet context
setFrame
public void setFrame(String f) throws PropertyVetoException
- Sets the frame specifier for showing a URL document in a browser or applet
viewer. It is interpreted as follows:
- "_self" show document in the current frame
- "_parent" show document in the parent frame
- "_top" show document in the topmost frame
- "_blank" show document in a new unnamed toplevel window
- all others show document in a new toplevel window with the given name
- Parameters:
- f - the frame specifier
- Throws: PropertyVetoException
- if the specified property value is unacceptable
- See Also:
- getFrame, frameTarget_self, frameTarget_parent, frameTarget_top, frameTarget_blank
setURL
public void setURL(URL u) throws PropertyVetoException
- Sets the URL of the document to show when the button is clicked.
- Parameters:
- u - the URL
- Throws: PropertyVetoException
- if the specified property value is unacceptable
- See Also:
- getURL
All Packages Class Hierarchy This Package Previous Next Index